<?php
class UserUpdateLanguageAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT
    );

    /**
     * 更新语种
     *
     * @param $userId
     * @param $language int
     * @return SzResponse
     */
    public function execute($userId, $language)
    {
        return $this->buildResponse(array(
            UserService::get()->updateLanguage($userId, $language)
        ));
    }
}